﻿@inherits Vowei.Web.G18nWebViewPage<Vowei.Core.Models.ExceptionPeriod>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<form method="post" action="@ViewBag.ActionUrl">    
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@ViewBag.Title</legend>

        <div class="editor-label">
            @T(model => model.Start)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Start, Vowei.Web.Models.WebConstants.DateTimeEditorAttributes)
            @Html.ValidationMessageFor(model => model.Start)
        </div>

        <div class="editor-label">
            @T(model => model.Finish)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Finish, Vowei.Web.Models.WebConstants.DateTimeEditorAttributes)
            @Html.ValidationMessageFor(model => model.Finish)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @if ( Model == null ) 
            {
                <input type="text" class="HtmlClass" name="Description" value="" />
            }
            else
            {
                <input type="text" class="HtmlClass" name="Description" value="@Model.Description" />
            }
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <p>
            <input type="submit" value="@T("创建")" />
        </p>
    </fieldset>
</form>